package com.reggie.setmeal.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.reggie.configuration.common.Result;
import com.reggie.setmeal.entity.Setmeal;
import com.reggie.setmeal.entity.dto.SetmealDTO;

import java.util.List;

public interface SetmealService extends IService<Setmeal> {

    SetmealDTO saveWithDish(SetmealDTO dto);

    Result<IPage> selectByPage(int page, int pageSize, String name);

    SetmealDTO selectByID(Long id);

    void deleteByIDs(List<Long> longIDs);

    void stopSellSetmeal(int status, List<Long> longIDs);

    //用于dish表查看菜品是否关联套餐，如果关联就不能删除菜品
    String selectSetmealNameByID(Long setmealId);


}
